#coding: UTF-8
import sys , os
import tornado.web

from configs import *
from data import * 
# from configs.ConfigApp import APP_NAME
'''{
	msg_login_game			--登陆游戏

}
'''

class apiHandler(tornado.web.RequestHandler):
    def get(self):

    	#test db
    	# inc.IncDB()().useDB("gamedb")
    	# inc.IncDB()().useCollection("user")
    	# ret = inc.IncDB()().findOnce({"b":1})
    	# print (ret , "ret")
    	# print (ret['b'] ,'bbb')
        #self.write(str(ret['b']))


        #test import
    	self.write(ConfigApp.SVR_VER)

    def post(self):
        print (self.request)
        name = self.get_argument('name' , None)
        pwd  = self.get_argument('pwd' , None)

        modules.mongodb.init()
        # if self.__is_olduser(name , pwd , uid):